<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px"><head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	  <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
	<link rel="stylesheet" href="css/project/style.css">
	<link rel="stylesheet" href="css/zv_common.css">
    <script src="js/zy_control.js"></script>
	<script src="js/zy_tmpl.js"></script>
    <script src="js/main.js"></script>
	<script src="js/init.js"></script>
	<script src="js/zv_loadp.js"></script>
	<script src="js/talkingdata.js"></script>
    <style type="text/css">
	.btupd{ padding:0.3em 0}	
    </style>  
</head>
<body class="um-vp" ontouchstart>
<div id="page_1" class="ub ub-ver um-vp">
<div id="stevedore_performancecontent" >
</div>
</div>
</body>
<script>
zy_init();
window.uexOnload=function(type){
	//LoadData(500);
	if(!type){
		uexWindow.setBounce("0");
	}
	stevedore_performancecontent();
}

var search_name    = localStorage.getItem("search_name");
function stevedore_performancecontent(){
			 var strx = "";
			 var json = localStorage.getItem("zvData");
			// var obj  = JSON.parse(json);
			 var  obj = strToJson(json);
			 var objdata = obj[0].data;
			for(var i=0;i<objdata.length;i++)	
			 {
			 	var orderx=(parseInt(i)+1)%4;
				if(parseInt(orderx)==0)
				{
					orderx= 4;
				}
				if (search_name != '') {
					var Cts = "a" + objdata[i].StaffName;
					var Cts2 = "a" + objdata[i].No;
					if (Cts.indexOf(search_name) > 0 || Cts2.indexOf(search_name) > 0)//查询判断
					{
							strx += '<div class="zv_lbg'+orderx+' ub zv_bb tx-c zv_font btupd">'
							strx += '<div class=" umw3 uinn">'
							strx += '<div class="zv_hh1 ">'+objdata[i].StaffName+'</div>'
							strx += '<div class="zv_hh1 ">'+objdata[i].No+'</div>'
							strx += '</div>'
							strx += '<div class="ub-f1 ub ub-ver tx-c zv_font">'
							strx += '<div class="zv_h1">工作量(次)</div>'
							strx += '<div class="zv_h2">'+objdata[i].ServiceCount+'</div>'
							strx += '<div class="zv_h1">加权架次(机动)</div>'
							strx += '<div class="zv_h2">'+objdata[i].JiDongJC+'</div>'
							strx += '</div>'
							strx += '<div class="umw6 ub ub-ver tx-c zv_font" style="padding-right:0.8em">'
							strx += '<div class="zv_h1">加权装卸重量(吨)</div>'
							strx += '<div class="zv_h2">'+objdata[i].Totalweight+'</div>'
							strx += '<div class="zv_h1">检查平均得分</div>'
							strx += '<div class="zv_h2">'+objdata[i].RecordAvg+'</div>'
							strx += '</div>'
							strx += '</div>'
					}	
				}	
				else
				{
					strx += '<div class="zv_lbg'+orderx+' ub zv_bb tx-c zv_font btupd">'
					strx += '<div class=" umw3 uinn">'
					strx += '<div class="zv_hh1 ">'+objdata[i].StaffName+'</div>'
					strx += '<div class="zv_hh1 ">'+objdata[i].No+'</div>'
					strx += '</div>'
					strx += '<div class="ub-f1 ub ub-ver tx-c zv_font">'
					strx += '<div class="zv_h1">工作量(次)</div>'
					strx += '<div class="zv_h2">'+objdata[i].ServiceCount+'</div>'
					strx += '<div class="zv_h1">加权架次(机动)</div>'
					strx += '<div class="zv_h2">'+objdata[i].JiDongJC+'</div>'
					strx += '</div>'
					strx += '<div class="umw6 ub ub-ver tx-c zv_font" style="padding-right:0.8em">'
					strx += '<div class="zv_h1">加权装卸重量(吨)</div>'
					strx += '<div class="zv_h2">'+objdata[i].Totalweight+'</div>'
					strx += '<div class="zv_h1">检查平均得分</div>'
					strx += '<div class="zv_h2">'+objdata[i].RecordAvg+'</div>'
					strx += '</div>'
					strx += '</div>'
				}
			 }
			localStorage.setItem("search_name","");
			 $$("stevedore_performancecontent").innerHTML=strx;
}	
</script>
</html>
